// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueScroller from 'vue-scroller'
Vue.use(VueScroller)

import { config } from './config/config'

const indicator = require('./components/fn-indicator/indicator.js').default
const toast = require('./components/fn-toast/index.js').default
require('./utils/native-bridge.js')

if (config.environment === 'dev' || config.environment === 'beta') {
	require('./utils/vconsole.js')
}

window.CommonUtil === undefined && (window.CommonUtil = {});

CommonUtil.indicator = indicator

CommonUtil.toast = toast

CommonUtil.interfaceTip = '接口异常，刷新重试'

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  components: { App },  
  template: '<App/>',
  router,
  render:(h) => h(App)
})
